    <template>
    <div>
        <h2 style="text-align: center;">药单</h2>
        <el-table
                :data="tableData"
                border
                style="width: 83%">
            <el-table-column
                    prop="id"
                    label="代号"
                    width="300">
            </el-table-column>
            <el-table-column
                    prop="name"
                    label="名称"
                    width="300">
            </el-table-column>
            <el-table-column
                    prop="price"
                    label="单价"
                    width="300"
            >
            </el-table-column>
            <el-table-column
                    prop="num"
                    label="数量"
                    width="300"
            >
            </el-table-column>

        </el-table>
        <br>
        <div ><router-link to="/printPrescription"><el-button type="primary" style="margin-left: 580px" >打印</el-button></router-link></div>

    </div>
</template>

<script>
    export default {
        name: "PrintPrescription",
        data() {
            return {
                tableData: [{
                    id: '001',
                    name: '可乐',
                    price: '15',
                    num:'2'
                }, {
                    id: '005',
                    name: '旺仔',
                    price: '10',
                    num:'1'
                }, {
                    id: '007',
                    name: '冰红茶',
                    price: '25',
                    num:'2'
                }, {
                    id: '010',
                    name: '海之言',
                    price: '50',
                    num:'10'
                }]
            }
        }
    }
</script>

<style scoped>

</style>